Next | Prev | Up | Top | Contents | Index

Public Global Variables

To be loadable, a driver must specify a pfxdevflag entry point, and it may not contain the D_OLD flag (see "Driver Flag Constant").

Any loadable module must define a public name pfxmversion, declared as follows:

#include <sys/mload.h> char *pfxmversion = M_VERSION;

Note the exact spelling of the variable; it is easy to overlook the letter "m" after the prefix. If the variable does not exist or is incorrectly spelled, an attempt to load the driver will fail.


Next | Prev | Up | Top | Contents | Index